import request from "@/utils/request";

// 分页查询历史记录
export function getChatData(data) {
  return request({
    url: "/ai/chat/page",
    method: "post",
    params: data,
  });
}

// 分页查询历史记录
export function updateChatData(data) {
  return request({
    url: "/ai/chat/update",
    method: "post",
    params: data,
  });
}

// 删除历史记录
export function deleteChatData(data) {
  return request({
    url: "/ai/chat/dels?contextIds="+data,
    method: "post",
  });
}

// 对话 聊天详情
export function getChatDataDetail(data) {
  return request({
    url: "/ai/chat/detail?contextId="+data,
    method: "post",
  });
}

// 对话 聊天详情 推荐
export function getChatDataDetailSuggest(data) {
  return request({
    url: "/ai/chat/suggest",
    method: "post",
    data: data
  });
}
